package com.trainoo.hystrix;

import com.trainoo.service.ScheduledServiceHi;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2018/5/28.
 */
@Component
public class ServiceHiHystrix implements ScheduledServiceHi {

    @Override
    public String sayHiFromClintOne(@RequestParam(value = "name") String name) {
        return "sorry, " + name + ", error occurs!";
    }
}
